import { CreateDateColumn, Entity, PrimaryGeneratedColumn, UpdateDateColumn } from "typeorm";
import { Column } from "typeorm";

@Entity()
export class Permission {

    @PrimaryGeneratedColumn()
    id: number;
    
    @Column({
        length:50
    })
    name: string;

    @Column({
        length:100,
        nullable:true
    })
    desc:string
    
    @CreateDateColumn()
    createTime: Date;
    
    @UpdateDateColumn()
    updateTime: Date;

}